import React, { createRef } from 'react'

export class NormalForm extends React.Component{
  intRef = createRef()
  render() {
    return (
      <div>
        <input type="text" name='xxx' ref={this.intRef} />
        <button onClick={()=>{console.log(this.intRef.current.value)}}>click</button>
      </div>
    )
  }
}